Get Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/1d'
-F fullname=Hussein \
-F 'file=@TigoPesa_7865432_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \
Response Sample
- Status OK Response
200 OK
[
{
"name": "INOCENTXXXXXXXX",
"account": "25565XXXXXX",
"contacts": "[email protected]",
"company": "Tigo",
"start_date": "2024-06-01T00:00:00",
"end_date": "2024-08-21T00:00:00",
"no_of_transactions": 28,
"in_types": [
"bank_to_wallet",
"agent_deposit",
"p2p_received",
"other"
],
"out_types": [
"luku",
"p2p_sent",
"wallet_to_bank",
"bundles",
"vcn_purchases",
"agent_withdrawal",
"bill_payment",
"merchant_payment",
"masterpass",
"check_balance",
"top_up",
"other"
],
"loan_services": [
"bustisha",
"nivushe"
],
"pars_3d": {
"agent_activity": {
"debit": [
"agent_withdrawal"
],
"credit": [
"agent_deposit"
]
},
"peer_to_peer_activity": {
"debit": [
"p2p_sent"
],
"credit": [
"p2p_received"
]
},
"bank_activity": {
"debit": [
"wallet_to_bank"
],
"credit": [
"bank_to_wallet"
]
},
"loan_activity": {
"debit": [
"bustisha",
"nivushe"
]
},
"bills_activity": {
"debit": [
"bill_payment",
"luku",
"gepg",
"merchant_payment"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {}
},
{
"initial_info": {
"account_number": "255658039279",
"first_date": "2024-06-01 00:00:00",
"last_date": "2024-08-21 00:00:00",
"total_days": 82,
"total_active_days": 22
},
"customer_profile": {
"wallet_balance": 21656.0,
"total_turnover": 657360.0,
"total_transactions": 28
},
"cash_flow_summary": {
"total_turnover": 657360.0,
"total_cashin": 301016.0,
"total_cashout": 356344.0,
"cashin_to_turnover_percentage": 45.79,
"cashin_transactions": 7,
"cashin_to_total_trans_percentage": 25.0,
"cashout_to_turnover_percentage": 54.21,
"cashout_transactions": 21,
"cashout_to_total_trans_percentage": 75.0
},
"bustisha_info": {
"total_amount_bustisha_disbursed": 0,
"max_amount_bustisha_disbursed": 0,
"number_of_bustisha_disbursements": 0,
"average_bustisha_disbursement_amount": 0,
"last_day_of_bustisha_disbursement": "N/A",
"last_bustisha_disbursement_amount": 0,
"total_amount_bustisha_repaid": 0,
"max_amount_bustisha_repaid": 0,
"number_of_bustisha_repayments": 0,
"average_bustisha_repayment_amount": 0,
"last_day_of_bustisha_repayment": "N/A",
"last_bustisha_repayment_amount": 0
},
"nivushe_info": {
"total_amount_nivushe_disbursed": 0,
"max_amount_nivushe_disbursed": 0,
"number_of_nivushe_disbursements": 0,
"average_nivushe_disbursement_amount": 0,
"last_day_of_nivushe_disbursement": "N/A",
"last_nivushe_disbursement_amount": 0,
"total_amount_nivushe_repaid": 0,
"max_amount_nivushe_repaid": 0,
"number_of_nivushe_repayments": 0,
"average_nivushe_repayment_amount": 0,
"last_day_of_nivushe_repayment": "N/A",
"last_nivushe_repayment_amount": 0
},
"bank_to_wallet": {
"total_bank_to_wallet_amount": 0.0,
"maximum_bank_to_wallet_amount": 0.0,
"no_of_bank_to_wallet_transactions": 0,
"average_bank_to_wallet_amount": 0.0,
"last_day_paid_bank_to_wallet": "N/A",
"last_bank_to_wallet_amount": 0.0
},
"agent_deposit": {
"total_agent_deposit_amount": 0.0,
"maximum_agent_deposit_amount": 0.0,
"no_of_agent_deposit_transactions": 0,
"average_agent_deposit_amount": 0.0,
"last_day_paid_agent_deposit": "N/A",
"last_agent_deposit_amount": 0.0
},
"p2p_received": {
"total_p2p_received_amount": 0.0,
"maximum_p2p_received_amount": 0.0,
"no_of_p2p_received_transactions": 0,
"average_p2p_received_amount": 0.0,
"last_day_paid_p2p_received": "N/A",
"last_p2p_received_amount": 0.0
},
"other": {
"total_other_amount": 0.0,
"maximum_other_amount": 0.0,
"no_of_other_transactions": 0,
"average_other_amount": 0.0,
"last_day_paid_other": "N/A",
"last_other_amount": 0.0
},
"luku": {
"total_luku_amount": 20400.0,
"maximum_luku_amount": 20400.0,
"no_of_luku_transactions": 1,
"average_luku_amount": 20400.0,
"last_day_paid_luku": "2024-06-02 00:00:00",
"last_luku_amount": 20400.0
},
"p2p_sent": {
"total_p2p_sent_amount": 0.0,
"maximum_p2p_sent_amount": 0.0,
"no_of_p2p_sent_transactions": 0,
"average_p2p_sent_amount": 0.0,
"last_day_paid_p2p_sent": "N/A",
"last_p2p_sent_amount": 0.0
},
"wallet_to_bank": {
"total_wallet_to_bank_amount": 0.0,
"maximum_wallet_to_bank_amount": 0.0,
"no_of_wallet_to_bank_transactions": 0,
"average_wallet_to_bank_amount": 0.0,
"last_day_paid_wallet_to_bank": "N/A",
"last_wallet_to_bank_amount": 0.0
},
"bundles": {
"total_bundles_amount": 0.0,
"maximum_bundles_amount": 0.0,
"no_of_bundles_transactions": 0,
"average_bundles_amount": 0.0,
"last_day_paid_bundles": "N/A",
"last_bundles_amount": 0.0
},
"vcn_purchases": {
"total_vcn_purchases_amount": 90404.0,
"maximum_vcn_purchases_amount": 27267.0,
"no_of_vcn_purchases_transactions": 7,
"average_vcn_purchases_amount": 12914.86,
"last_day_paid_vcn_purchases": "2024-08-01 00:00:00",
"last_vcn_purchases_amount": 7017.0
},
"agent_withdrawal": {
"total_agent_withdrawal_amount": 0.0,
"maximum_agent_withdrawal_amount": 0.0,
"no_of_agent_withdrawal_transactions": 0,
"average_agent_withdrawal_amount": 0.0,
"last_day_paid_agent_withdrawal": "N/A",
"last_agent_withdrawal_amount": 0.0
},
"bill_payment": {
"total_bill_payment_amount": 0.0,
"maximum_bill_payment_amount": 0.0,
"no_of_bill_payment_transactions": 0,
"average_bill_payment_amount": 0.0,
"last_day_paid_bill_payment": "N/A",
"last_bill_payment_amount": 0.0
},
"merchant_payment": {
"total_merchant_payment_amount": 40000.0,
"maximum_merchant_payment_amount": 10000.0,
"no_of_merchant_payment_transactions": 4,
"average_merchant_payment_amount": 10000.0,
"last_day_paid_merchant_payment": "2024-08-14 00:00:00",
"last_merchant_payment_amount": 10000.0
},
"masterpass": {
"total_masterpass_amount": 0.0,
"maximum_masterpass_amount": 0.0,
"no_of_masterpass_transactions": 0,
"average_masterpass_amount": 0.0,
"last_day_paid_masterpass": "N/A",
"last_masterpass_amount": 0.0
},
"check_balance": {
"total_check_balance_amount": 50.0,
"maximum_check_balance_amount": 50.0,
"no_of_check_balance_transactions": 1,
"average_check_balance_amount": 50.0,
"last_day_paid_check_balance": "2024-06-07 00:00:00",
"last_check_balance_amount": 50.0
},
"top_up": {
"total_top_up_amount": 0.0,
"maximum_top_up_amount": 0.0,
"no_of_top_up_transactions": 0,
"average_top_up_amount": 0.0,
"last_day_paid_top_up": "N/A",
"last_top_up_amount": 0.0
},
"transaction_channels": {},
"statement_check": {
"isvalid": true
}
}
]
- Bad Request Response
400 Bad Request
message: "<The specific error message>"
- Unprocessable Entity
422 Unprocessable file entity
message: "Unprocessable File Entity"
- Rate Limit Error
429 Rate Limited Error
message: "Rate limited resource",
nexttime:"19876543"
Rate Limiting!
Rate Limited Resource Continous Access will lead to blocking an account.
- Internal Server Error
500 Internal Server Error
message: "An Internal server error",